package org.wevil.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wevil.vo.Result;
import org.wevil.vo.TestVo;

import javax.servlet.http.HttpServletRequest;

/**
 * controller不包含前缀的的测试接口
 *
 * @author wanglei
 * @since 2024-01-29
 */
@RestController
public class IndexController {

    /** 测试大华摄像头心跳数据接收 */
    @PostMapping("/NotificationInfo/KeepAlive")
    public Result<TestVo> keepAlive(HttpServletRequest request) {
        TestVo testVo = new TestVo();
        testVo.setID(2);
        System.out.println(request.getRequestURI() + "dddd");
        testVo.setID_NAME("哈哈哈哈");
        return Result.success(testVo);
    }
}
